Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "vitor lacerda"

Hi,

How can i use Property Injection at InitialDataBuilder (DBMigration Seed)?

For example, how can i user Logger class?

public ILogger Logger { get; set; }

Thanks,

Vitor Lacerda

Hi Halil,

In My Project, a User belong to 1 or + OU (Organization Unit).

Entities like "Sales" implements "IMustHaveOU" interface.

public interface IMustHaveOU { public Guid OrgUnitId {get;set;}

[ForeingKey("OrgUnitId")] public OrgUnit OrgUnit {get;set;} }

I want to create a DynamicFilter to filter entity that implement this interface using OU's from Current User (AbpSession).

So, I extend "User" class

public class User : AbpUser<Tenant, User> { public virtual ICollection<OrgUnit> OrgUnits{ get; set; } //List of OU that user belongs

    public virtual ICollection OUIds{ get; set; } //List of OU Id's that user belongs
}

The question is?

How can i get User navigation from AbpSession?

How can i use AbpSession.User.OrgUnits (List) on Dynamic filter?

protected override void OnModelCreating(DbModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); modelBuilder.Filter("OuFilter", (IMustHaveOU entity) => AbpSession.User.OUList.Contains(entity.OrgUnitId), null);

or

modelBuilder.Filter("OuFilter", (IMustHaveOU entity,, List placeList) =>placeList.Contains(p.PlaceId), () => AbpSession.User.OUIds);

    }

Is this a good approach? this will create a "IN" clause on SQL?

Can i extend properties on AbpSession?

Can i use LINQ JOIN in DynamicFilter?

Thanks

Vitor Lacerda

Hi,

Can anyone help me with this questions?

What is the best way to deploy Asp.Net Boilerplate + Zero project (SAAS) to Azure App Services and get better scalability system?

PS: My project can run on-promises too.

Of course, i will put database on SQL Database Azure service or on-promises Database.

Questions:

  1. Should i put all projects on same APP Service?

  2. Should i split projects between APP Service / API App?

If yes, What project shoud i put on App Service and API App?

Example: Web to App service , all others (Application, WebApi, Core, EntityFramework) to API App

  1. Anyone has a template project for Aspnetboilerplate+Zero with Azure integration?

  2. Anyone using Continuous Integration with VS Online?

Thanks.

Vitor Lacerda

Hi,

I generate a full template with module zero. I change web.config for database and run "update-migration".

Everything run ok. Database was created.

I try to run the application and when i put a user/password (admin / 123qwe) an internal error occurred.

"An internal error occurred durring your request!"

Do you know whats going on?

Thanks!

Hi Halil,

Can you explain the module system?

A module can contain 5 projects: Application, Core, EntityFramework, WebAPI and Web?

Imagine an application that contains a main module with entities, domain events, domain services, application services, web api, web, etc.

Now imagine that a new module is created, it will depend on the main module and will add entities, domain events, domain services, application services, web api, web, etc.

These modules will communicate using "DomainEvents"?

Should I use the embedded resource to store the frontend module views as html pages, chtml, css, js ?

You can share a simple implementation using the module system where each module can contain each of the projects like a main module?

Sorry my english.

Thank you for the great work.

Hi,

I need to insert or update a disconnected complex object graph.

I'm using angularjs / EF6 and use a IObjectState (interface) to define Added, Modified, Deleted and Unchanged states.

I want to define my Entities with ObjectState Interface and call a method InsertOrUpdateGraph on a Repository.

I cant extend IRepository<TEntity,TPrimaryKey> because a can access DBContext to attach object and change EntityState based on ObjectState.

Can you implement this pattern or explain how can i do this without change abp source code?

Sample implementation <a class="postlink" href="https://genericunitofworkandrepositories.codeplex.com/wikipage?title=Inserting%20a%20Complex%20Object%20Graph&referringTitle=Documentation">https://genericunitofworkandrepositorie ... umentation</a>

Thanks for your great work!

Vitor Lacerda

Showing 1 to 6 of 6 entries